class Rule {

  ArrayList action = new ArrayList();
  ArrayList condition = new ArrayList();

  Rule(String line) {
    String[] cond;
    String[] act;
    String[] splitted;

    splitted = split(line, '>');
    cond = split(splitted[0], '^');
    act = split(splitted[1], ',');
    for (int i = 0 ; i < cond.length ; i++) {
      condition.add(cond[i].trim());
    } 
    for (int i = 0 ; i < act.length ; i++) {
      action.add(act[i].trim());
    }
  }

  public ArrayList getAction() {
    return action;
  }

  public ArrayList getCondition() {
    return condition;
  }
}


